'use strict'
const tools = {}
const User = require('../models/index').getModel('users_info')

tools.getUserInfo = async (ctx, next) => {
  let data = await User.findOne()
  ctx.body = data
  return next()
}

module.exports = tools